package spt.jukg.singleton.test.pro_com.waite;

public class Main {
	public static void main(String[] args) {
		Resource re=new Resource();
		Comsumer co =new Comsumer(re);
		Producer pr=new Producer(re);
		
		
		for(int i=0;i<100;i++) {
			new Thread(pr).start();
			new Thread(co).start();
			
		}
	}

}
